package com.koron.sinoprobe.web.ledger.bean.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author twcao
 * @title: SpPlanMilestoneQuery
 * @projectName GDH_EAM_V2
 * @description: TODO
 * @date 2022/3/1714:34
 */
@Data
@ApiModel(description = "专项项目/计划-里程碑查询条件")
public class SpPlanMilestoneQuery extends PageQuery {

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("计划id或项目id")
    private String spId;

    @ApiModelProperty("里程碑节点")
    private String name;

    @ApiModelProperty("计划开始时间，yyyy-mm-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expectStartTime;

    @ApiModelProperty("计划结束时间，节点时间，yyyy-mm-dd、节点最后期限")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expectEndTime;

    @ApiModelProperty("实际开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date factStartTime;

    @ApiModelProperty("实际结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date factEndTime;

    @ApiModelProperty("里程碑状态：专项管理.sp_milestone_status")
    private String status;

    @ApiModelProperty("完成进度，单位：%")
    private Integer progress;
}
